import request from '@/utils/request'

// 查询经纪人列表
export function listBroker(query) {
  return request({
    url: '/broker/broker/list',
    method: 'get',
    params: query
  })
}

// 查询经纪人详细
export function getBroker(id) {
  return request({
    url: '/broker/broker/' + id,
    method: 'get'
  })
}

// 新增经纪人
export function addBroker(data) {
  return request({
    url: '/broker/broker',
    method: 'post',
    data: data
  })
}

// 修改经纪人
export function updateBroker(data) {
  return request({
    url: '/broker/broker',
    method: 'put',
    data: data
  })
}

// 删除经纪人
export function delBroker(id) {
  return request({
    url: '/broker/broker/' + id,
    method: 'delete'
  })
}
// 所属门店
export function storelist() {
  return request({
    url: '/broker/broker/storeslistfor',
    method: 'post'
  })
}
// 门店 后面 有哪些 经纪人
export function InquireBroker(data) {
  return request({
    url: '/broker/broker/InquireBroker',data,
    method: 'post'
  })
}
